import request from '@/utils/request'

// 查询保险合同共保信息列表
export function listCoinsurance(query) {
  return request({
    url: '/insurance/coinsurance/list',
    method: 'get',
    params: query
  })
}

// 查询保险合同共保信息详细
export function getCoinsurance(id) {
  return request({
    url: '/insurance/coinsurance/' + id,
    method: 'get'
  })
}

// 新增保险合同共保信息
export function addCoinsurance(data) {
  return request({
    url: '/insurance/coinsurance',
    method: 'post',
    data: data
  })
}

// 修改保险合同共保信息
export function updateCoinsurance(data) {
  return request({
    url: '/insurance/coinsurance',
    method: 'put',
    data: data
  })
}

// 删除保险合同共保信息
export function delCoinsurance(id) {
  return request({
    url: '/insurance/coinsurance/' + id,
    method: 'delete'
  })
}
